.sidebar {
  width: 250px;
  height: calc(100vh - 70px); /* 减去顶部导航栏高度 */
  background-color: #ffffff;
  color: #2c3e50;
  border-right: 1px solid #e6f2ff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  overflow-y: auto;
}

.logo {
  display: flex;
  align-items: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid #e6f2ff;
  margin-bottom: 20px;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.logo span {
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navMenu {
  flex: 1;
}

.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav li {
  margin-bottom: 5px;
}

.navItem {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #2c3e50;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  margin: 5px 15px;
  border-radius: 8px;
}

.navItem:hover {
  background-color: #f0f8ff;
  color: #3498db;
}

.navItem.active {
  background-color: #e6f2ff;
  color: #3498db;
  font-weight: 500;
}

.navItem.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #3498db;
  border-radius: 0 4px 4px 0;
}

.navItem i {
  margin-right: 10px;
  font-size: 18px;
}



/* 响应式设计 */
@media (max-width: 768px) {
  .sidebar {
    width: 70px;
    height: calc(100vh - 60px); /* 移动端顶部导航栏高度可能不同 */
  }
  
  .logo span {
    display: none;
  }
  
  .navItem span {
    display: none;
  }
  
  .navItem {
    justify-content: center;
    margin: 5px 10px;
  }
  
  .navItem i {
    margin-right: 0;
  }
}